import api from "@/utils/api";

export function loginApi(account: string, password: string) {
    return api.post('/user/login', {
        account, password
    })
}

export function getMenu(){
    return api('/menu');
}

export function getUserInfo(){
    return api('/user/userInfo')
}

// todo: 接口未做
export function updateUserInfo(res:object){
    return api.put('/user/userInfo')
}